package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.APP_MESSAGE;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.HttpBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;

public class MessageApi implements IRequestApi, IRequestType {

    private String marmot;

    public MessageApi(String marmot) {
        this.marmot = marmot;
    }

    @NonNull
    @Override
    public String getApi() {
        return APP_MESSAGE;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class MessageBean extends HttpBean {

        private ArrayList<HesitancyBean> hesitancy;

        public ArrayList<HesitancyBean> getHesitancy() {
            return hesitancy;
        }
    }

    public static final class HesitancyBean extends HttpBean {
        private int sort;
        private String thorough;

        public int getSort() {
            return sort;
        }

        public String getThorough() {
            return thorough;
        }
    }


}

